
var Global = {
    powerNum:5,
    score:0,
    combo:0,
    bgHeight:0,
    bgWidth:0,
    xSize:0,
    ySize:0,
    pos:function(row,col){
        if(col == 0 && row != 0){
            var xPos = -this.bgWidth/2+(this.xSize/2+12)*(col+1);
            var yPos = -this.bgHeight/2+(this.ySize+12)*(row)+(this.ySize/2+12);
        }else if(row == 0 && col != 0){
            var xPos = -this.bgWidth/2+(this.xSize+12)*(col)+(this.xSize/2+12);
            var yPos = -this.bgHeight/2+(this.ySize/2+12)*(row+1);
        }else if(row == 0 && col == 0){
            var yPos = -this.bgHeight/2+(this.ySize/2+12)*(row+1);
            var xPos = -this.bgWidth/2+(this.xSize/2+12)*(col+1);
        }else if(row != 0 && col != 0){
            var xPos = -this.bgWidth/2+(this.xSize+12)*(col)+(this.xSize/2+12);
            var yPos = -this.bgHeight/2+(this.ySize+12)*(row)+(this.ySize/2+12);
        }
        var posArr = new Array();
        posArr = [xPos,yPos];
        return posArr;
    }
}
module.exports = Global;